-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort ITIS response & multiple common names #237
Conversation
Openshift URLs for the PR Deployment: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #237 +/- ##
==========================================
+ Coverage 68.45% 68.64% +0.19%
==========================================
Files 193 194 +1
Lines 4758 4794 +36
Branches 630 637 +7
==========================================
+ Hits 3257 3291 +34
Misses 1369 1369
- Partials 132 134 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the Solr query can be optimized to get around some of the sorting / filtering on exact matches.
Note: vernacular terms (common names) are "$" delimited.
Heres a simplified query for only the common names portion
q=vernacular:$black\%20bear$*+vernacular:$*black\%20bear$*
- This will search for a common name exact match first ie: "$Black bear$"
- Then searches for any common name ending with "black bear" ie: "$American black bear$"
Still working on the scientific name portion of this query. But this is what I have so far.
You can create a postman variable for the {{SPECIES}} refs.
I'll update this comment with the revised query tomorrow.
@MacQSL True. I tried adjusting the query to remove the need for sorting but couldn't consistently get the same results as the sorting functions here, and I figured that the sorting functions in this PR work well enough for now. The query can be optimized down the road |
Quality Gate failedFailed conditions |
Quality Gate failedFailed conditions |
Links to Jira Tickets
N/A
Description of Changes
Testing Notes